<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Browserify Example | Watson developer Cloud JS SDK </title>
  <style type=text/css>
    textarea {
      height: auto;
      min-height: 300px;
      width: 100%;
      max-width: 800px;
    }
  </style>
</head>
<body>

<h1>Browserify Example</h1>
<h2>Watson developer Cloud JS SDK</h2>

<p>This example connects directly from your browser to the Watson Tone Analyzer service (after fetching an auth token from the node.js server.)</p>

<p>Input text:</p>
<textarea id="input">Greetings from IBM Watson!</textarea>

<p><button id="analyze-btn">Analyze</button></p>

<p>Result:</p>
<pre><code id="output"></code></pre>

<script src="/bundle.js"></script>
</body>
</html>
